package main

import (
	"fmt"
	"net"
)

func main() {
	addr, err := net.LookupHost("www.baidu.com")
	if ins, ok := err.(*net.DNSError); ok {
		if ins.IsTimeout {

		} else {

		}
	}
	fmt.Println(addr)
}
